package team.newexcellence.tsfitness.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import team.newexcellence.tsfitness.pojo.User;
import team.newexcellence.tsfitness.service.UserService;

/**
 * @Description: 用户的控制层, 使用String作为返回值, 返回的是逻辑视图名
 * @Author: liningbo
 * @CreateDate: 2018/8/2 10:28
 * @UpdateUser: liningbo
 * @UpdateDate: 2018/8/2 10:28
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @RequestMapping("/userLogin")
    @ResponseBody
    public String userLogin(String userPhone, String password) {
        return null;
    }

    @RequestMapping("/userRegister")
    @ResponseBody
    public String userRegister(User user, String code) {
        return null;
    }

    @RequestMapping("/userShow")
    @ResponseBody
    public String userShow(int userID) {
        return null;
    }

    @RequestMapping("/userModifyInformation")
    @ResponseBody
    public String userModifyInformation(int userID) {
        return null;
    }
    @RequestMapping("/userStatisticsAllTime")
    public String userStatisticsAllTime(int userID) {
        return null;
    }


}
